﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniFox.Data
{
    /// <summary>
    /// 
    /// </summary>
    public class CommandEventArgs : EventArgs
    {
        /// <summary>
        /// 
        /// </summary>
        public string ConnectionString { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string CommandText { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public IDictionary<string, object> Parameters { get; set; }
    }
    /// <summary>
    /// 
    /// </summary>
    public class CommandErrorEventArgs : CommandEventArgs
    {
        /// <summary>
        /// 
        /// </summary>
        public Exception Error { get; set; }
        /// <summary>
        /// 是否忽略错误，如果为true则在事件处理完成后抛出异常
        /// </summary>
        public bool HandleError { get; set; }
    }
}
